﻿using BlueCat.Models.Dcm;
using Newtonsoft.Json;
using Prism.Mvvm;

namespace BlueCat.Models
{
    public class Study 
    {
        [JsonProperty("00020010")]
        public UI UI_00020010 { get; set; }

        [JsonProperty("00080020")]
        public DA DA_00080020 { get; set; }
        public string CheckDate { get { return DA_00080020?.Value[0]; } }
        [JsonProperty("00080030")]
        public TM TM_00080030 { get; set; }

        [JsonProperty("00080050")]
        public SH SH_00080050 { get; set; }

        [JsonProperty("00080061")]
        public CS CS_00080061 { get; set; }
        public string Device { get { return CS_00080061?.Value[0]; } }
        [JsonProperty("00100010")]
        public PN PN_00100010 { get; set; }
        public string PatientName { get { return PN_00100010?.Value[0].Alphabetic; } }

       [JsonProperty("00100020")]
        public LO LO_00100020 { get; set; }
        public string MRN { get { return LO_00100020?.Value[0]; } }
        [JsonProperty("00100040")]
        public CS CS_00100040 { get; set; }

        [JsonProperty("0020000D")]
        public UI UI_0020000D { get; set; }

        [JsonProperty("00200010")]
        public SH SH_00200010 { get; set; }

        [JsonProperty("00201206")]
        public IS IS_00201206 { get; set; }

        [JsonProperty("00201208")]
        public IS IS_00201208 { get; set; }
    }
}
